<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Province extends Model
{
    public $fillable = [
        'shenji',
        'diji',
        'xianji',
        'zhudi',
        'renkou',
        'mianji',
        'youbian',
        'quhua',
        'quhao',

        'level',
        'text',
        'pid',
    ];

    public function children()
    {
        return $this->hasMany('App\Models\Province','pid');
    }
}
